﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace YArchitech.Plumbing
{
	public class SystemSelectionFilter : ISelectionFilter
	{
		public bool AllowElement(Element element)
		{
			return element.Category.Name == "管道" || element.Category.Name == "风管";
		}

		public bool AllowReference(Reference refer, XYZ point)
		{
			return false;
		}
	}
}
